package com.yanggeng.demo.beginnerguidedemo.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.github.barteksc.pdfviewer.PDFView;
import com.yanggeng.demo.beginnerguidedemo.R;
import com.yanggeng.demo.beginnerguidedemo.activity.BaseActivity;

/**
 * pdf文件查看
 * @author aiden@tronsis.com
 * @date 2018/5/24 17:43
 */
public class PDFActivity extends BaseActivity {

    private PDFView mPDFView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pdf);
        setTitle(true, "PDF查看");

        mPDFView = (PDFView) findViewById(R.id.pdfView);

        mPDFView.fromAsset("pdf/alibaba.pdf").load();
    }
}
